using FreeSql.DataAnnotations;

namespace LF.Domain.Entities
{
    /// <summary>
    /// 字典类型
    /// </summary>
    [Table(Name = "SysDictType")]
    public class DictType : BaseEntity
    {
        /// <summary>
        /// 字典名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 字典编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 状态（0正常 1停用）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 字典项
        /// </summary>
        [Navigate(nameof(DictItem.TypeId))]
        public virtual List<DictItem> DictItems { get; set; }
    }
} 